﻿app.controller('MyActivityDetailCtrl', ['$scope', '$http', '$stateParams', '$filter', 'httpPlus', function ($scope, $http, $stateParams, $filter, httpPlus) {
         httpPlus
              .MMB2RRRApi('Manage/MemberEventRegistration/GetByGUID', {
                  _guid: $stateParams.id
              })
              .then(function (data) {
                  console.log(data);
                  $scope.activityDetail = data;
                  $scope.activityDetail.time = data.StartTime.substring(0, 10) + '-' + data.EndTime.substring(0, 10);
                  $scope.activityDetail.detail = decodeURIComponent(data.Detail);

              });
}])